package com.wanmait.community.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 操作日志
 */
@Data
@Accessors(chain = true)
@TableName(value = "operation_log")
public class OperationLog {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField(value = "admin_id")
    private Integer adminId;
    @TableField(exist = false)
    private Admin admin;

    @TableField(value = "user_id")
    private Integer userId;
    @TableField(exist = false)
    private User user;

    @TableField(value = "input_time")
    private Date inputTime;

    @TableField(value = "ip")
    private String ip;

    @TableField(value = "info")
    private String info;
}